#!/bin/sh
v_start_date=`date -d "$1" +%Y%m%d`
v_end_date=`date -d " +1 day $2" +%Y%m%d`
echo "起始跑批日期是$v_start_date"
echo "结束跑批日期是$v_end_date"

while [[ $v_start_date<$v_end_date ]]
       do 
          echo "$v_start_date"
/home/hadoop/dev/shell/edw_batch_start.sh $v_start_date
/home/hadoop/dev/shell/edw_parallel_parm_refresh.sh $v_start_date
/home/hadoop/dev/shell/edw_parallel_proc_launcher.sh FIN_ORG
/home/hadoop/dev/shell/edw_data_sync.sh D
/home/hadoop/dev/shell/edw_data_sync.sh M
/home/hadoop/dev/shell/edw_data_sync.sh B
v_start_date=`date -d " +1 day $v_start_date" +%Y%m%d`
done
